package main;

import java.util.Calendar;
import java.util.Date;

public class Test2 extends Thread{
	public static Long lasttime = Calendar.getInstance().getTimeInMillis();; 
	public static void main(String[] args) {
		for (int i=0;i<10;i++){
		new Test2().start();
		}
	}
	
	@Override
	public void run() {
		synchronized (this.getClass()) {
			try {
				Thread.sleep(3000);
				System.out.println(new Date());
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
}
